<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewCustomerTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewCustomerLabel_id}"/>
                    <h:outputText value="#{customerController.selected.id}" title="#{bundle.ViewCustomerTitle_id}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_civility}"/>
                    <h:outputText value="#{customerController.selected.civility}" title="#{bundle.ViewCustomerTitle_civility}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_firstName}"/>
                    <h:outputText value="#{customerController.selected.firstName}" title="#{bundle.ViewCustomerTitle_firstName}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_lastName}"/>
                    <h:outputText value="#{customerController.selected.lastName}" title="#{bundle.ViewCustomerTitle_lastName}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_address1}"/>
                    <h:outputText value="#{customerController.selected.address1}" title="#{bundle.ViewCustomerTitle_address1}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_address2}"/>
                    <h:outputText value="#{customerController.selected.address2}" title="#{bundle.ViewCustomerTitle_address2}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_address3}"/>
                    <h:outputText value="#{customerController.selected.address3}" title="#{bundle.ViewCustomerTitle_address3}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_zipCode}"/>
                    <h:outputText value="#{customerController.selected.zipCode}" title="#{bundle.ViewCustomerTitle_zipCode}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_city}"/>
                    <h:outputText value="#{customerController.selected.city}" title="#{bundle.ViewCustomerTitle_city}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_country}"/>
                    <h:outputText value="#{customerController.selected.country}" title="#{bundle.ViewCustomerTitle_country}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_phone}"/>
                    <h:outputText value="#{customerController.selected.phone}" title="#{bundle.ViewCustomerTitle_phone}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_mobile}"/>
                    <h:outputText value="#{customerController.selected.mobile}" title="#{bundle.ViewCustomerTitle_mobile}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_email}"/>
                    <h:outputText value="#{customerController.selected.email}" title="#{bundle.ViewCustomerTitle_email}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_login}"/>
                    <h:outputText value="#{customerController.selected.login}" title="#{bundle.ViewCustomerTitle_login}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_password}"/>
                    <h:outputText value="#{customerController.selected.password}" title="#{bundle.ViewCustomerTitle_password}"/>
                    <h:outputText value="#{bundle.ViewCustomerLabel_createdDate}"/>
                    <h:outputText value="#{customerController.selected.createdDate}" title="#{bundle.ViewCustomerTitle_createdDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewCustomerLabel_updatedDate}"/>
                    <h:outputText value="#{customerController.selected.updatedDate}" title="#{bundle.ViewCustomerTitle_updatedDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewCustomerLabel_deletedDate}"/>
                    <h:outputText value="#{customerController.selected.deletedDate}" title="#{bundle.ViewCustomerTitle_deletedDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{customerController.destroyAndView}" value="#{bundle.ViewCustomerDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewCustomerEditLink}"/>
                <br />
                <h:commandLink action="#{customerController.prepareCreate}" value="#{bundle.ViewCustomerCreateLink}" />
                <br />
                <h:commandLink action="#{customerController.prepareList}" value="#{bundle.ViewCustomerShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/admin/admin.xhtml" value="#{bundle.ViewCustomerIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
